/* //登录接口需要携带参数ts类型
export interface loginForm {
  username: string,
  password: string
}
interface dataType {
  token: string
}
//登录接口返回数据类型
export interface loginResponseData {
  code: number,
  data: dataType
}
interface userInfo {
  userId: number,
  avator: string,
  username: string,
  password: string,
  desc: string,
  roles: string[],
  buttons: string[],
  routes: string[],
  token: string
}
//定义服务器返回用户信息相关的数据类型
interface user {
  checkUser: userInfo
}
export interface userResponseData {
  code: number,
  data: user
} */
export interface loginForm {
  username: string,
  password: string
}
export interface responseData {
  code:number,
  message:string,
  ok:boolean
}
export interface loginData extends responseData{
  data:string
}
export interface getUserData extends responseData {
  data:{
    routes:string[],
    buttons:string[],
    roles:string[],
    name:string,
    avatar:string
  }
}